import { http } from '@/utils/http'
import type {TestDetail, TestResult,TestList} from '@/types/healthTest'


export const getTestDetailById = (htId : string) => {
    return http<TestDetail[]>({
      url: `/app/healthTest/getTestDetailById/`+htId,
    })
  }

  export const getTestResult = (data : TestDetail[]) => {
    return http<TestResult>({
      method: 'POST',
      url: `/app/healthTest/getTestResult/`,
      data,
    })
  }
  export const getTestResult02 = (data : TestDetail[]) => {
    return http<TestResult>({
      method: 'POST',
      url: `/app/healthTest/getTestResult02/`,
      data,
    })
  }

  export const getAllHealthTest = () => {
    return http<TestList[]>({
      url: `/app/healthTest/getAllHealthTest/`,
    })
  }

